package Pm.Animals;

public class Animal {
    private String name;
    private String sound;

    public Animal(){

    }

    public Animal(String name, String sound) {
        this.name = name;
        this.sound = sound;
    }

    public String getName() {
        return name;
    }

    public String getSound() {
        return sound;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }

    public void isSound(){
        System.out.println("名字： " + name);
        System.out.println("叫声： " + sound);
    }
}

